#include <iostream>
#include <sigc++/sigc++.h>
using namespace std;
/*
g++ memberpointer_simple.cpp -o memberpointer_simple `pkg-config --cflags --libs sigc++-2.0`
*/
class SimpleTest{
public:
	SimpleTest(){
		sigc::signal<void> signal_print;
		signal_print.connect(sigc::mem_fun(this,&SimpleTest::inramanhinh));
		//	OR
		//signal_print.connect(sigc::mem_fun(*this,&SimpleTest::inramanhinh));
		//Deu` duoc.
		signal_print.emit();
	}
	void inramanhinh(){
		cout << "In ra man hinh" << endl;
	}
};

int main(){
	SimpleTest simple;
	return 0;
}
